package com.foreveredu.erlms.persist;

import java.util.List;

import com.foreveredu.erlms.domain.Enroll;
import com.foreveredu.erlms.domain.PageModel;

public interface IEnrollDao extends IDao<Enroll, Integer>{

	//通过身份证号码和报名号查找报名信息
	Enroll findEnrollByIdCardAndEnrollNumber(String idCard, String enrollNumber);

	//获得本届考试的所有有效报名信息（已缴费并生成报名号），以便导出DBF格式的报名数据
	List<Enroll> findEnrollsByExamOrder(int examOrder);

	//获得本届考试中按班级排序的未交费学生报名信息，以便导出DBF格式的报名数据
	List<Enroll> findNoPaidEnrollsByExamOrder(int examOrder);

	PageModel findEnrollList(int offset , int examOrder);

	PageModel findEnrollListByPaid(int offset,int examOrder);

	PageModel findEnrollListByIcon(int offset,int examOrder);

	List<Enroll> findEnrollByExamineeId(int id);

	Enroll findEnrollById(int id);

	List<Enroll> findEnrollByIdCard(String idCard, int examOrder);

//	List<Enroll> findEnrollByIdCardAndSerialNumber(String idCard,
//			String serialNumber, int examOrder);

	//在本届考试中通过身份证号码和网报号查找考生信息
	Enroll findEnrollByIdCardAndSerialNumber(String idCard,
			String serialNumber, int examOrder);

	int findEnrollAllNumber(int examOrder);

	int findEnrollPaidNumber(int examOrder);

	int findEnrollKeepGradeNumber(int examOrder);

	int findEnrollPaidNumberByToday(String now);

	int findEnrollPaidNumberByTodayAndKeepGrade(String now);

	Boolean findEnrollByDeptAndIdCard(int examOrder, String idCard, int rankId);

}
